<?php
/**
 * @file
 * Facebook's JavaScript to render XFBML tags.
 *
 * Usage:
 *  - A page that wants to render XFBML tags should include/require this page
 *    once and only once within the '<body></body>' tags, after the 'FBJS
 *    Feature Loader' and after any XFBML tag.
 *  - The page must be created with the correct doctype ('FB_XFBML_DOCTYPE') and
 *    XML namespace ('FB_XFBML_XMLNS').
 *
 * Parameter(s):
 *  - $PATH_COMMON : Relative path from the calling page to the 'common'
 *                   directory (e.g. '../common/').
 *
 * Global variable(s) set:
 *  - None.
 *
 * Global variable(s) unset:
 *  - None.
 *
 * Exception(s):
 *  - None.
 *
 * This file includes/requires:
 *  - h_facebook.php
 */

// header file(s) ==============================================================
require_once $PATH_COMMON . "php/h_facebook.php";


// implementation ==============================================================
?>
<script type="text/javascript">
FB_RequireFeatures(
  ["XFBML"],
  function() {
    FB.Facebook.init(
      "<?php echo FB_APP_KEY ?>",
      "<?php echo FB_JS_XDOMAIN_RECEIVER ?>"
    );
  }
);
</script>
